import { View, Text, Image } from "@tarojs/components";
import { useLoad, request } from "@tarojs/taro";
import icon from "@/assets/aaaa_icon.png";
import "./index.scss";

export default function World() {
  useLoad(() => {
    console.log("Page loaded.", process.env.API_BASE_URL);
  });

  const fetchData = () => {
    // request({
    //   url: 'https://www.baidu.com'
    // })
  };

  return (
    <View className='world'>
      <Image src={icon}></Image>
      <Text>Hello world!</Text>
    </View>
  );
}
